import { http } from '@/utils/http'

export interface ConsoleData {
  visits: {
    dayVisits: number
    rise: number
    decline: number
    amount: number
  }
  saleroom: {
    weekSaleroom: number
    amount: number
    degree: number
  }
  orderLarge: {
    weekLarge: number
    rise: number
    decline: number
    amount: number
  }
  volume: {
    weekLarge: number
    rise: number
    decline: number
    amount: number
  }
}

export function getConsoleInfo() {
  return http.get<ConsoleData>('/api/dashboard/console')
} 